neural network example. neural network algorithm